package com.itany.corejava.code07_面向对象.租车系统;

/**
 * @author: 石小俊
 * @date: 2023年03月09日 11:05
 * @version: 1.0
 * 机动车抽象类
 */
public abstract class MotorVehicle {

    private String no;  // 车牌
    private String brand;   // 品牌

    public MotorVehicle(String no, String brand) {
        this.no = no;
        this.brand = brand;
    }

    public MotorVehicle() {
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    // 计算租金的抽象方法
    public abstract double rent(int day);
}
